package com.atjava.nebula.core.tablexml.view;

import java.io.Serializable;
import java.util.List;

import com.atjava.jox.annotation.ClassProps;
import com.atjava.jox.annotation.FieldProps;
import com.atjava.jox.annotation.FieldProps.ElementType;

@ClassProps(alias = "grid")
public class Grid implements Serializable,IdObject{

	@FieldProps
	private String id;
	
	@FieldProps
	private String pk;
	
	@FieldProps
	private boolean tree;
	
	@FieldProps(alias = "tree-id")
	private String treeId;
	
	@FieldProps(alias = "tree-pid")
	private String treePid;
	
	@FieldProps
	private boolean page;
	
	@FieldProps(alias = "back-page")
	private boolean backPage;
	
	@FieldProps
	private String dataset;
	
	@FieldProps(alias = "config-path")
	private String configPath;
	
	@FieldProps(alias = "data-path")
	private String dataPath;
	
	@FieldProps(alias = "edit-path")
	private String editPath;
	
	@FieldProps(alias = "edit-view-path")
	private String editViewPath;
	
	@FieldProps(alias = "delete-path")
	private String deletePath;
	
	@FieldProps(alias = "page-size")
	private Integer pageSize;
	
	@FieldProps(type = ElementType.ELEMENTLIST)
	private List<Column> columns;
	
	@FieldProps(type = ElementType.ELEMENT, alias="head-actions")
	private ButtonGroup headActions;
	
	@FieldProps(type = ElementType.ELEMENT, alias="foot-actions")
	private ButtonGroup footActions;

	public String getTreeId() {
		return treeId;
	}

	public void setTreeId(String treeId) {
		this.treeId = treeId;
	}

	public String getTreePid() {
		return treePid;
	}

	public void setTreePid(String treePid) {
		this.treePid = treePid;
	}

	public List<Column> getColumns() {
		return columns;
	}

	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}

	public ButtonGroup getHeadActions() {
		return headActions;
	}

	public void setHeadActions(ButtonGroup headActions) {
		this.headActions = headActions;
	}

	public ButtonGroup getFootActions() {
		return footActions;
	}

	public void setFootActions(ButtonGroup footActions) {
		this.footActions = footActions;
	}

	public boolean isTree() {
		return tree;
	}

	public void setTree(boolean tree) {
		this.tree = tree;
	}

	public boolean isPage() {
		return page;
	}

	public void setPage(boolean page) {
		this.page = page;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDataset() {
		return dataset;
	}

	public void setDataset(String dataset) {
		this.dataset = dataset;
	}

	public String getPk() {
		return pk;
	}

	public void setPk(String pk) {
		this.pk = pk;
	}

	public String getConfigPath() {
		return configPath;
	}

	public void setConfigPath(String configPath) {
		this.configPath = configPath;
	}

	public String getDataPath() {
		return dataPath;
	}

	public void setDataPath(String dataPath) {
		this.dataPath = dataPath;
	}

	public String getEditPath() {
		return editPath;
	}

	public void setEditPath(String editPath) {
		this.editPath = editPath;
	}

	public String getEditViewPath() {
		return editViewPath;
	}

	public void setEditViewPath(String editViewPath) {
		this.editViewPath = editViewPath;
	}

	public String getDeletePath() {
		return deletePath;
	}

	public void setDeletePath(String deletePath) {
		this.deletePath = deletePath;
	}

	public boolean isBackPage() {
		return backPage;
	}

	public void setBackPage(boolean backPage) {
		this.backPage = backPage;
	}
	
}
